{% block form_row %}
<div class="form-group">
{{ form_label(form) }}
<div class="col-sm-10">{{ form_widget(form) }}</div>
</div>
{% endblock form_row %}

{% block submit_group_for_new_widget %}
{% for child in form %}
{{ form_widget(child) }}
{% endfor %}
{% endblock %}

{% block submit_group_for_edit_widget %}
{% for child in form %}
{{ form_widget(child) }}
{% endfor %}
{% endblock %}

{%- block form_widget_simple -%}
    {%- set type = type|default('text') -%}
    <input type="{{ type }}" {{ block('widget_attributes') }} {% if value is not empty %}value="{{ value }}" {% endif %}/>
    {% if form.vars.attr.help is defined %}<span class="help-block m-b-none"><span class="text-muted">{{ form.vars.attr.help }}</span></span>{% endif %}
{%- endblock form_widget_simple -%}

{% block auto_widget %}
    {{ form_auto(_context)|raw }}
{% endblock %}
